package com.meilian.carousel.controller;

import com.meilian.carousel.service.CarouselService;
import com.meilian.utils.R;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

//轮播图的控制类
@RestController
@RequestMapping("carousel")
public class CarouselController {
    @Autowired
    private CarouselService carouselService;
    @PostMapping("list")
    public R list(){
        return carouselService.list();
    }
}
